﻿@************************************************************************************//
// Autor:  			                							     				*//
//***********************************************************************************//
// CargaInicial()		Acceso solo ADMINISTRADOR									*//
// Vista que se encarga de realizar la carga inicial de los bienes informáticos		*//														 			
// _________________________________________________________________________________*@

@*@model IEnumerable<SIBI.Models.BienInformatico>   *@        
@{
    ViewBag.Title = "Carga Inicial";
}

<h2>Carga Inicialo</h2>

<script src="@Url.Content("~/Scripts/myScript3.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/myScript4.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)

        <legend>Bien Informático</legend>
        <br /><br />
        <div class="error">
        @{
            if (ViewBag.Error != "")
            {
                <p>@ViewBag.Error</p>
                if (ViewBag.Error == "Everything went better than expected :D")
                {
                    <img src="http://s3.amazonaws.com/kym-assets/entries/icons/original/000/001/253/everything_went_better_than_expected.jpg" alt="All good"/>
                }
            }
        }
        </div>
        <br/>
        
        <p>Se selecciona el archivo que contiene los bienes informáticos a resguardar. </p><input type="file" name="file" id="upload" value="Subir Archivo" />
        <br />
        <input type="submit" name="btnSubmit" value="Subir Archivo" />
}
